{% load mptt_tags %}
{% load model_list markup %}

<!DOCTYPE html>
<html>
    
    <head>
        <title>{% block title %}{{ current_node.title }}{% endblock %}</title>
                {% include "tpls/head.html" %}
    </head>
    
    <body>
<!-- THE LINE AT THE VERY TOP OF THE PAGE -->    
        <div class="top_line"></div>
<!-- HEADER AREA -->         
        <header>
            <div class="container">
                <div class="row">
<!-- HEADER LOGO -->                
                    <div class="span4 logo">
                        {% full_tree_for_model structure.StructureNode as nodes %} <!--  -->
                        {% recursetree nodes %} <!-- инициализируем дерево -->
                        {% if node.level == 0 %}
                        <a class="logo" href="{{ node.path }}">
                            {% model_list global Logotype object_list %}
                                {% for object in object_list %}
                                    <img alt="logo" title="bizstrap" src="{{ object.img.url }}">
                                {% endfor %}
                        </a>
                        {% endif %}
                        {% endrecursetree %}
                    </div>
                    <div class="span4 offset4">

                        <p class="head_phone">
                {% include "tpls/lang_switcher.html" %}
                        </p>
                    </div>
                {% include "socials.html" %}        
                </div>
            </div>
            
{%include "tpls/top_navigation.html" %}

        </header>
<!-- MAIN CONTENT AREA -->        
        <div class="main-content">
            <div class="container">
                <div class="row show-grid">
                    <div class="span12">
                        
{% include "tpls/breadcrumb.html" %}

                        <div class="row show-grid clear-both">
                            
{% include "tpls/left_sidebar.html" %}                            

<!-- BEGIN ARTICLE CONTENT AREA -->
                            <div class="span9 main-column two-columns-left">
                                <article>
                                   <h1>{{ current_node.title }}</h1>
                                   
                                   <p>                                   
                                   {{ current_node.content|safe }}
                                   </p>
                                </article>
<!-- END ARTICLE CONTENT AREA -->
                            </div>
                        </div>
                    </div>
                </div>
                <hr>
                
{% include "tpls/clients_box.html" %}

            </div>
            
{% include "tpls/twitter_bar.html" %}
        </div>
        
{% include "tpls/footer.html" %}

    </body>
    
</html>

<!-- EOF -->
